import request from "@/utils/request.js";

export function editPage(id) {
  return request({
    method: 'get',
    url: '/webshop/categoryTwo/' + id
  })
}

export function dialogSubmit(form,title) {
  return request({
    method: title == "添加" ? "post" : "put",
    url: '/webshop/categoryTwo',
    data: form
  })
}

export function getBaseList() {
  return request({
    method: 'get',
    url: '/webshop/categoryTwo/list'
  })
}

export function deleteBase(ids) {
  return request({
    method: 'delete',
    url: 'http://localhost:9090/webshop/categoryTwo/' + ids,
  })
}
